/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
public class Empresa implements Serializable {
	public Empresa() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_EMPRESA_LIBRO) {
			return ORM_libro;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private int em_id;
	
	private String em_nombre;
	
	private String em_rut;
	
	private java.util.Set ORM_libro = new java.util.HashSet();
	
	private void setEm_id(int value) {
		this.em_id = value;
	}
	
	public int getEm_id() {
		return em_id;
	}
	
	public int getORMID() {
		return getEm_id();
	}
	
	public void setEm_nombre(String value) {
		this.em_nombre = value;
	}
	
	public String getEm_nombre() {
		return em_nombre;
	}
	
	public void setEm_rut(String value) {
		this.em_rut = value;
	}
	
	public String getEm_rut() {
		return em_rut;
	}
	
	private void setORM_Libro(java.util.Set value) {
		this.ORM_libro = value;
	}
	
	private java.util.Set getORM_Libro() {
		return ORM_libro;
	}
	
	public final orm.LibroSetCollection libro = new orm.LibroSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_EMPRESA_LIBRO, orm.ORMConstants.KEY_LIBRO_EMPRESAEM, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getEm_id());
	}
	
}
